package com.czp.ssm.bean;

import java.math.BigDecimal;
import java.util.List;

public class Train {
    private Long id;

    private String trainId;

    private BigDecimal trainPrice;

    private String startDate;

    private String endDate;

    private String startStationName;

    private String endStationName;

    private String startCityName;

    private String endCityName;

    private String trainPosition;

    private Long stock;

    private String trainNumber;
    
    private Position position;
    
    private List<Position> positionList;
    
    public List<Position> getPositionList() {
		return positionList;
	}

	public void setPositionList(List<Position> positionList) {
		this.positionList = positionList;
	}

	public Position getPosition() {
		return position;
	}

	public void setPosition(Position position) {
		this.position = position;
	}

	public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getTrainId() {
        return trainId;
    }

    public void setTrainId(String trainId) {
        this.trainId = trainId == null ? null : trainId.trim();
    }

    public BigDecimal getTrainPrice() {
        return trainPrice;
    }

    public void setTrainPrice(BigDecimal trainPrice) {
        this.trainPrice = trainPrice;
    }

    public String getStartDate() {
        return startDate;
    }

    public void setStartDate(String startDate) {
        this.startDate = startDate == null ? null : startDate.trim();
    }

    public String getEndDate() {
        return endDate;
    }

    public void setEndDate(String endDate) {
        this.endDate = endDate == null ? null : endDate.trim();
    }

    public String getStartStationName() {
        return startStationName;
    }

    public void setStartStationName(String startStationName) {
        this.startStationName = startStationName == null ? null : startStationName.trim();
    }

    public String getEndStationName() {
        return endStationName;
    }

    public void setEndStationName(String endStationName) {
        this.endStationName = endStationName == null ? null : endStationName.trim();
    }

    public String getStartCityName() {
        return startCityName;
    }

    public void setStartCityName(String startCityName) {
        this.startCityName = startCityName == null ? null : startCityName.trim();
    }

    public String getEndCityName() {
        return endCityName;
    }

    public void setEndCityName(String endCityName) {
        this.endCityName = endCityName == null ? null : endCityName.trim();
    }

    public String getTrainPosition() {
        return trainPosition;
    }

    public void setTrainPosition(String trainPosition) {
        this.trainPosition = trainPosition == null ? null : trainPosition.trim();
    }

    public Long getStock() {
        return stock;
    }

    public void setStock(Long stock) {
        this.stock = stock;
    }

    public String getTrainNumber() {
        return trainNumber;
    }

    public void setTrainNumber(String trainNumber) {
        this.trainNumber = trainNumber == null ? null : trainNumber.trim();
    }
}